#pragma once
#include "../stdafx.h"
#include "../scene/Camera.h"
#include "math.h"

class Ray;
class Camera;
class Coordinate :public Component
{
public:
    Coordinate(uint32,uint32);
    ~Coordinate(void);

    static Coordinate* Instance(uint32 x=0,uint32 y=0);

    void addedToObject();
    D3DXVECTOR2 WorldToScreenCoord(D3DXVECTOR3*);
    Ray* ScreenToWorldCoord(D3DXVECTOR2*);
private:
    uint32 m_hscreenWidth;
    uint32 m_hscreenHeight;
    uint32 m_screenWidth;
    uint32 m_screenHeight;
};